# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tilda
pkgver=1.5.2
pkgrel=0
pkgdesc="A Gtk based drop down terminal for Linux and Unix"
url="https://github.com/lanoxx/tilda"
arch="all"
license="GPL-2.0-or-later"
depends="procps"
makedepends="automake autoconf libtool
	confuse-dev vte3-dev libx11-dev libxml2-utils
	pcre2-dev"
subpackages="$pkgname-lang"
source="https://github.com/lanoxx/tilda/archive/tilda-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--disable-maintainer-mode \
		--enable-lto \
		--enable-vte-2.91 \
		--disable-rpath
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5f950696626005d6f8711fe1403313b36f065796ac07946e9782997aaf67a4bfdb3bfa5e37889bff95d77655d3546100a48327bfa175aa24c39a28685ee0306a  tilda-1.5.2.tar.gz"
